#define _CRT_SECURE_NO_WARNINGS 1
#include<cstdio>
#include<iostream>
#include<cmath>

using namespace std;

int main()
{
    int n, x, y;
    cin >> n;
    x = n / 2, y = n / 2;
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < n; j++)
        {
            if (abs(i - x) + abs(j - y) <= n / 2)
                cout << '*';
            else
                cout << ' ';
        }
        printf("\n");
    }
    return 0;
}

